package com.xzx.springbootredis.service.impl;

import com.xzx.springbootredis.entity.Member;
import com.xzx.springbootredis.repository.MemberRepository;
import com.xzx.springbootredis.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl implements MemberService {
    @Autowired
    private MemberRepository memberRepository;
    @Override
    public Member findByName(String name) {
        return memberRepository.findByName(name);
    }

    @Override
    public Member findByMobile(String mobile) {
        return memberRepository.findByMobile(mobile)    ;
    }
}
